//
//  RefExpTest.cpp
//  GRE
//
//  Created by Kutlak Roman on 23/11/2011.
//  Copyright (c) 2011 University of Aberdeen. All rights reserved.
//

#include <iostream>

#include <gtest/gtest.h>

#include "Settings.h"
#include "Ontology.h"
#include "RefExp.h"
using namespace kutlak::roman::gre;

TEST(RefExp, Constr) {
    Ontology::SetDefault(pOntology(new Ontology("/Users/roman/Projects/NLP/DBPedia/dbpedia.nt")));
    Ontology::Default()->OpenFile("/Users/roman/Projects/NLP/GRE/resources/ontology.nt");
    
//    std::cout << "Ontology size: " << Ontology::Default()->Size() << '\n';
    
    RefExp re;
    re.Add(Property(Ontology::kType, Ontology::kThing));
    EXPECT_EQ(1, re.Size());
    
    re.Add(Property(Ontology::kType, Ontology::kThing));
    EXPECT_EQ(1, re.Size());
    
    re.Add(Ontology::kPersonType);
    EXPECT_EQ(1, re.Size());
    
    re.Add(Ontology::kPersonType);
    EXPECT_EQ(1, re.Size());
    
//    std::cout << re.ToString() << "\n";
}
